<!--
 * @LastEditors: 杜康
 * @LastEditTime: 2021-09-14 13:09:18
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>时间转换指令</title>
</head>

<body>
  <div id="app" v-cloak>
    <div v-time="timeNow" />
    <div v-time="timeBefore" />
  </div>
  <script src="https://unpkg.com/vue/dist/vue.min.js"></script>
  <script src="time.js"></script>
  <script src="index.js"></script>
</body>

</html>